package cn.shrek.service.impl;

import cn.shrek.bean.User;
import cn.shrek.mapper.UserMapper;
import cn.shrek.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    /**
     * 查询全部
     * @return
     */
    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }
    @Override
    public User queryUserByUserName(String user_name) {

        return this.userMapper.queryUserByUserName(user_name);
    }


}
